import pytest

from AutoTest03.jwdev.jwdev import Count
from AutoTest03.utils.logutil import logger


class TestAdd():
    def test_add1(self):
        try:
            j=Count(2,3)
            logger.info('先生，这是第一条用例')
            assert j.add()==6
        except:
            logger.error('第一条用例失败！')
    def test_add2(self):
        j=Count(21,31)
        assert j.add() ==52
    def test_add3(self):
        j=Count(40,70)
        assert j.add() == 110
if __name__ == '__main__':
    pytest.main(['-v','-s','jwtest.py'])